home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Index / Easy View / 1 - More Source next >
Encoding:
Text File  |  1995-06-29  |  17.9 KB  |  428 lines  |  [TEXT/MSWD]

  1. 1 - More Source
  2.  
  3.  
  4. Tricks CD:More Source:
  5.  
  6. __________
  7. Whether you are looking for a routine to tell you how many colors are on a user's main monitor, or the complete source code for a killer game that uses GWorlds or sprite animation, you'll find it here. There's hundreds of thousands of lines of source code, in C, C++, Pascal, and other languages. You'll find complete applications, code resources, Control Panels, Extensions, Libraries, and Snippets. Most code examples are built using CodeWarrior, Symantec, or MPW environments.
  8. ----------
  9. 3D Buttons CDEF 1.0b6
  10. Zig Zichterman
  11. zig_zichterman@novell.com
  12. Tricks CD:More Source:C/C++:
  13. /info-mac/dev/src/
  14. __________
  15. 3D Buttons is a CDEF that implements the 3D control interface as proposed in develop issue 15. It also supports tristate checkboxes and radio buttons, as well as icon buttons.
  16.  
  17. Public domain
  18. ----------
  19. AIFF_DSP_v22
  20. Ben Denckla
  21. bdenckla@fas.harvard.edu
  22. Tricks CD:More Source:C/C++:
  23. ftp://ftp.cs.jhu.edu/pub/dsp/
  24. __________
  25. AIFF_DSP, an audio IFF file DSP programmer's framework, provides a complete set of routines which deal with all aspects of AIFF file handling.
  26. ----------
  27. Animation Tutorial
  28. Sam Davidoff
  29. Bernard256@aol.com
  30. Tricks CD:More Source:C/C++:
  31. AOL:
  32. __________
  33. Did you ever want to learn about CopyBits() animation? Do you wonder what the heck is CopyBits() anyway? Well this file is for you, it gives a little information on the theory of CopyBits() animation and then provides some well documented source code that creates a simple screen saver by animating icons. By the way this requires 32 bit QuickDraw. I've tested this in 1 to 16 bit color and it works though you have to increase the memory for 16 bit.
  34. ----------
  35. AntiAlias
  36. Ingemar Ragnemalm
  37. ingemar@lysator.liu.se
  38. Tricks CD:More Source:Pascal:
  39.  
  40. __________
  41. AntiAlias shows how to make anti-aliased text. Based on a demo by David Phillip Oster.
  42. ----------
  43. Arashi 1.1
  44. Juri Munkki
  45. jmunkki@hut.fi
  46. Tricks CD:More Source:C/C++:
  47. /info-mac/dev/src/
  48. __________
  49. Arashi is an arcade game that supports 256 colors or grays. It is based on the vector-drawn graphics of popular arcades hits.
  50. ----------
  51. AsychSound
  52. Steve Maller
  53. steve@maller.com
  54. Tricks CD:More Source:C/C++:
  55. ftp://ftpbio.bgsu.edu/alt.sources.mac/
  56. __________
  57. AsynchSound is a function that, passed an FSSpec to a sound file (like those the Finder can plan), opens it and plays the sound in it asynchronously. It uses the partial resource reading routine so that it can read the handle into temporary memory instead of having the program's application heap take the hit.
  58. ----------
  59. AsynchSounds
  60. Thomas Reed
  61. reed@medicine.wustl.edu
  62. Tricks CD:More Source:C/C++:
  63. /info-mac/dev/src/
  64. __________
  65. AsynchSounds allows you to play sounds asynchronously in a flexible manner. Also includes routines to play sounds from disk directly.
  66. ----------
  67. Brain Damage
  68. Ingemar Ragnemalm
  69. ingemar@lysator.liu.se
  70. Tricks CD:More Source:Pascal:
  71.  
  72. __________
  73. Brain Damage is an old joke program by Scott T Boyd, making fun of MS-DOS computers. Figuring out how to quit is the funniest part.
  74. ----------
  75. Carl O's Term
  76. Ingemar Ragnemalm
  77. ingemar@lysator.liu.se
  78. Tricks CD:More Source:Pascal:
  79.  
  80. __________
  81. Carl O's Term is a terminal emulator originally written in Turbo Pascal by Carl R. Osterwald. This version is enhanced quite a bit. Think Pascal source. Useful if you want to learn about serial communication.
  82. ----------
  83. Chess++ 3.0.1
  84. Steve Bushell
  85. python@tiac.net
  86. Tricks CD:More Source:C/C++:
  87. /info-mac/dev/src/
  88. __________
  89. Chess++ is a program written in Symantec C++/TCL 1.1.3 which, as you might guess, plays chess. It was used as the demo project for the introduction of Symantec's new THINK Project Manager at the World Wide Developer's Conference (WWDC) in California in early May, 1993.
  90. ----------
  91. CModalProgress 1.1
  92. Graham Heathcote
  93. heathcot@bnr.ca
  94. Tricks CD:More Source:C/C++:
  95. ftp://ftpbio.bgsu.edu/alt.sources.mac/vol-09/
  96. __________
  97. CModalProgress is a C++ class that generates the standard progress dialog. It draws the usual one that fills up as well as the barberpole (meat grinder).
  98. ----------
  99. CopyBits Demo 1.5
  100. Kenneth Worley
  101. KNEworley@aol.com
  102. Tricks CD:More Source:C/C++:
  103. /info-mac/dev/src/
  104. __________
  105. CopyBits Demo is an example project that gives several examples of using CopyBits to copy pictures both on screen and between offscreen Graphics Worlds and an onscreen window (as well as between GWorlds). It also shows how to use CopyBits to accomplish a "fade to black" on a specific area of the screen (rather than the whole monitor). Wait! There's more! It also demonstrates the difference between "flickering" regular animation and smooth animation using GWorlds (and demonstrates how to do it). And, with version 1.5, it does an image to image fade using CopyBits! All the code and the project file to build the demo app is included (Metrowerks CodeWarrior C).
  106. ----------
  107. DialogControls
  108. Todd Clements
  109. tclement@hmc.edu
  110. Tricks CD:More Source:C/C++:
  111. /info-mac/dev/src/
  112. __________
  113. DialogControls shows how to do different things with dialogs: Set the window font and size, patch NewControl() so that you have controls in the window font, use Popup Menus in modal dialogs, use AppendDITL() to achieve a spiffy preferences box, use styled text edit records from resources to display text, write a filter for a ModalDialog, and use MovableModal dialog boxes.
  114. ----------
  115. Digital Money™ Dev Kit
  116.  
  117.  
  118. Tricks CD:More Source:Libraries:
  119. /info-mac/dev/src/
  120. __________
  121.  
  122. ----------
  123. Digital Money™ Dev Kit
  124. Digital Money, Inc.
  125. digitalmoney@aol.com
  126. Tricks CD:More Source:Libraries:
  127. /info-mac/dev/src/
  128. __________
  129. Digital Money AutoPay is a software module that you can insert in your own programs. It allows users to pay for your software with a credit card. They can pay instantaneously through a modem, through a voice telephone call, or through the mail. You don't need a credit card merchant account. AutoPay is great for both shareware authors and for software publishers who want to distribute their products through on-line channels.
  130. ----------
  131. E-Z Progress Bar 1.0a
  132. Michael Terry
  133. mat101@aol.com
  134. Tricks CD:More Source:C/C++:
  135. /info-mac/dev/src/
  136. __________
  137. E-Z Progress Bar is a class dedicated to creating and maintaining a window with a progress bar in it.
  138. ----------
  139. Finder ProgressBar 1.1
  140. Chris Larson
  141. cklarson@engr.ucdavis.edu
  142. Tricks CD:More Source:C/C++:
  143. /info-mac/dev/src/
  144. __________
  145. Finder ProgressBar is a CDEF which mimics the progress bar used in the Finder. This was intended as an EXACT copy of the progress bars used in the Finder (at least visually), so the color's are hardcoded, etc.
  146. ----------
  147. FlightSim
  148. Chris Moll
  149. isschris@issserv3.lbl.gov
  150. Tricks CD:More Source:C/C++:
  151. /info-mac/dev/src/
  152. __________
  153. FlightSim is the source code for a program to demonstrate how to do 3D perspective drawing and clipping.
  154. ----------
  155. Gamma Fade 1.1.2
  156. Matt Slot
  157. fprefect@engin.umich.edu
  158. Tricks CD:More Source:C/C++:
  159. ftp://ftpbio.bgsu.edu/alt.sources.mac/vol-04/
  160. __________
  161. Gamma Fade is a library that allows you to do smooth (gamma) fading on color monitors. It is intended as a general tool for manipulating the Gamma tables of graphics devices.
  162. ----------
  163. Glypha III
  164. John Calhoun
  165. jcalhoun@databank.com
  166. Tricks CD:More Source:C/C++:
  167. /info-mac/dev/src/
  168. __________
  169. Glypha is a game that is very similar to Joust.
  170. ----------
  171. graph3D
  172. Chris Moll
  173. isschris@issserv3.lbl.gov
  174. Tricks CD:More Source:C/C++:
  175. /info-mac/dev/src/
  176. __________
  177. Graph3D is a 3D graphing program that demostrates how to do non-perspective 3D plotting and mathematical expression parsing. All math is floating point, though some of the code for fixed point math remains.
  178. ----------
  179. Infinity Windoid 3.0
  180. Troy Gaul
  181. tgaul@halcyon.com
  182. Tricks CD:More Source:C/C++:
  183. /info-mac/dev/src/
  184. __________
  185. Infinity Windoid is a WDEF that provides a 'windoid' appearance to windows. It includes projects for both THINK C and CodeWarrior.
  186. ----------
  187. Kant Generator Pro 1.2
  188. Mark Pilgrim
  189. f8dy@netaxs.com
  190. Tricks CD:More Source:C/C++:
  191. /info-mac/dev/src/
  192. __________
  193. Kang Generator Pro generates pseudo-Kantian doctrine based on context-free grammar and Kant's vocabulary in the Critique of Pure Reason. Also lets you build and test your own generation modules. Includes CodeWarrior project.
  194. ----------
  195. Legend
  196. Bohm S. Kim
  197. kimbs@aol.com
  198. Tricks CD:More Source:C/C++:
  199.  
  200. __________
  201. Legend is a typical dungeon game. Move, get treasure, and fire at the monsters. The bar in the control panel on the right shows your current health. This is always going down and will decrease quite a bit if you get hit.  The bar will start flashing red to let you know your health is low.  When it reaches zero the game is over. The object of the game is to stay alive and complete each level by reaching the stairway (or other exit) of each level.  Often the exits are behind locked gates; you must find the corresponding key to unlock the gate and proceed.
  202.  
  203. Shareware $15
  204. ----------
  205. MacWT 0.77
  206. Bill Hayden
  207. bmoc1@aol.com
  208. Tricks CD:More Source:C/C++:
  209. http://grove.ufl.edu/~nikolsw/
  210. __________
  211. MacWT is an easy-to-use 3-D graphics engine, based on the cross-platform wt engine originally developed by Chris Laurel.  MacWT was built from a base of wt 0.05c1 with the exception of those changes from b to c1 which broke the floor/ceiling rendering code.  The first version of MacWT was created by Turlough O'Connor in early 1994.  While the current MacWT is based on Mr. O'Connor's MacWT 0.04, little of the original code remains.
  212. ----------
  213. mgraph
  214. Ralph Gonzalez
  215. gonzalez@crab.rutgers.edu
  216. Tricks CD:More Source:C/C++:
  217. /info-mac/dev/src/
  218. __________
  219. mgraph is a library which lets you supplement a stdio ANSI C application with a graphics window, without having to learn a complex graphics package (like X Window or the Mac Toolbox).
  220. ----------
  221. MicroAnimationDemo
  222. Ingemar Ragnemalm
  223. ingemar@lysator.liu.se
  224. Tricks CD:More Source:Pascal:
  225.  
  226. __________
  227. MicroAnimationDemo is a minimal sprite animation demo. REALLY minimal.
  228. ----------
  229. Mine Sweeper
  230. William Edward Woody
  231. woody@alumni.cco.caltech.edu
  232. Tricks CD:More Source:C/C++:
  233. /info-mac/dev/src/
  234. __________
  235. Mine Sweeper is a simple game. The object of the game is to find all the mines in the playing field. Includes THINK C project.
  236. ----------
  237. MovieScroll
  238. Ingemar Ragnemalm
  239. ingemar@lysator.liu.se
  240. Tricks CD:More Source:Pascal:
  241.  
  242. __________
  243. MovieScroll is a demo showing how to make scrolling titles as in movies. Based on a demo by Kenneth A. Long.
  244. ----------
  245. NewWatch
  246. Ingemar Ragnemalm
  247. ingemar@lysator.liu.se
  248. Tricks CD:More Source:Pascal:
  249.  
  250. __________
  251. NewWatch was a "chain code" project in alt.sources.mac, where this old watch demo was modified and enhanced by several programmers. It has some interest as a demo of how to use regions.
  252. ----------
  253. Notes Demo
  254. Andrew Plotkin
  255. erkyrath@cmu.edu
  256. Tricks CD:More Source:C/C++:
  257. /info-mac/dev/src/
  258. __________
  259. Notes Demo is a primitive example of a sampled note synthesizer, ported to CodeWarrior. It allocates four channels and sets a sampled sound on each, by sending a soundCmd; then it sends the sequences of notes to each, using the SndPlay function to send the freqDurationCmds in the SND resources 9008-9011. Then it sits and waits for the user to hit RETURN. (Once started, the sounds play asynchronously.)
  260. ----------
  261. offscreen2
  262. Ralph Gonzalez
  263. gonzalez@crab.rutgers.edu
  264. Tricks CD:More Source:C/C++:
  265. /info-mac/dev/src/
  266. __________
  267. offscreen2 is a set of routines demonstrates offscreen drawing.
  268. ----------
  269. OffscreenToys 1.3
  270. Ingemar Ragnemalm
  271. ingemar@lysator.liu.se
  272. Tricks CD:More Source:Pascal:
  273.  
  274. __________
  275. OffscreenToys is a fairly advanced sprite demo, with collision handling. This is a stand-alone demo, NOT to be confused with "OffscreenToys SAT", which looks the same but uses SAT (Sprite Animation Toolkit). OffscreenToys uses only the standard Toolbox calls. The "boost" version preloads the sprite face to a GWorld, in order to speed up drawing.
  276. It demonstrates the following techniques:
  277. • How to use "glue" code for backwards compatibility
  278. • How to use GWorlds
  279. • How to speed up drawing by preloading cicn resources to GWorlds
  280. • How to handle collisions in a realistic way
  281. • How to make flicker-free sprite animation
  282. • How to load cicn resources
  283. • How to handle events, windows and menus
  284. • Some fundamental QuickDraw
  285. • How to measure frame rate
  286. It also has enough hooks (mousedowns, keydowns) for being useable as a shell program.
  287. ----------
  288. OneTest
  289. Ingemar Ragnemalm
  290. ingemar@lysator.liu.se
  291. Tricks CD:More Source:Pascal:
  292.  
  293. __________
  294. OneTest is a small Mac programming shell. The file "OneEvents.p" contains reusable code, which rarely needs any changes. That makes it much easier to use as a shell than shells like Skel.
  295. ----------
  296. Parrot 1.0b1
  297. Bernie Bernstein
  298. bernie_bernstein@powertalk.apple.com
  299. Tricks CD:More Source:C/C++:
  300. /info-mac/dev/src/
  301. __________
  302. Parrot will play back things it hears. From the author: I wrote this hack for a Halloween party. This was in the "confusion" room. A microphone picked up sounds that guests made, and at random intervals, they heard their own voices played at other parts of the room. The hack listens to the sound input device and remembers everything it hears (that is loud enough) and then plays those things back in a random order. If your Mac has stereo capability, then it also randomly chooses a speaker to play each sound. The more memory the program has allocated, the more sounds it remembers.
  303. ----------
  304. Peter's Final Project
  305. Peter Mattis
  306. petm@soda.csua.berkeley.edu
  307. Tricks CD:More Source:C/C++:
  308. /info-mac/dev/src/
  309. __________
  310. Peter's Final Project demonstrates a texture mapped maze in which you can move around. Several features: The mazes can be randomly generated, the view can be any size as long as its square, the maze can be any size, depth shading, a form of psuedo-Gouraud shading for the textures, initial support for 3d objects that are Gouraud shaded, collision detection between objects and walls.
  311.  
  312. Distributed under GNU General Public License.
  313. ----------
  314. picture
  315. Ralph Gonzalez
  316. gonzalez@crab.rutgers.edu
  317. Tricks CD:More Source:C/C++:
  318. /info-mac/dev/src/
  319. __________
  320. Picture is a free class library for displaying and animating three-dimensional color wire-frame drawings, although it may also be used for displaying two-dimensional drawings.  It supports (1) segmentation of graphical entities, (2) multiple viewpoints and multiple projection windows, and (3) animation with an independent frame of reference for each (nested) segment. 
  321. ----------
  322. PlayerPRO 4.4.1
  323. Antoine Rosset
  324. rosset@dial.eunet.ch
  325. Tricks CD:More Source:Libraries:
  326. /info-mac/dev/src/
  327. __________
  328. PlayerPRO is a set of routines that allow you to play MOD files in your programs. MOD files are special multi-channel sound files that are popular on the Amiga computer. Includes both 68K and PPC projects for CodeWarrior. Also includes a Think C 7 project.
  329.  
  330. Freeware
  331. ----------
  332. Pop Up Menu CDEF
  333. Stuart Chesire
  334. chesire@cs.stanford.edu
  335. Tricks CD:More Source:C/C++:
  336. ftp://bolo.stanford.edu/
  337. __________
  338. Pop Up Menu CDEF was written because the author was frustrated by the lack of a good popup menu CDEF. That was five years ago, and now a popup menu CDEF is built into system software. However, this one has been thoroughly tested, and will give you backward compatibility with pre-System 7 users.
  339. ----------
  340. PWarp
  341. Ingemar Ragnemalm
  342. ingemar@lysator.liu.se
  343. Tricks CD:More Source:Pascal:
  344.  
  345. __________
  346. PWarp is a simple animation, much like the old "Stars DA" from the old days of the Mac. Demonstrates fundamental QuickDraw. In color, but works on b/w Macs as well.
  347. ----------
  348. Rotater 2.8
  349. Craig Kloeden
  350. craig@raru.adelaide.edu.au
  351. Tricks CD:More Source:C/C++:
  352. ftp://raru.adelaide.edu.au/rotater/
  353. __________
  354. Rotater is a program that reads a set of 3-dimensional points and lines and plots them in a window. The image can then be rotated with the mouse in real time.
  355. ----------
  356. Safari II 1.4
  357. John Gallaugher
  358. jmgallau@syr.edu
  359. Tricks CD:More Source:C/C++:
  360. AOL:MGM:Arcade #1:
  361. __________
  362. Safari is a simple game written in C. Demonstrates techniques that you might want to use when creating your own game.
  363. ----------
  364. SAT 2.3b4
  365. Ingemar Ragnemalm
  366. ingemar@lysator.liu.se
  367. Tricks CD:More Source:Libraries:
  368. /info-mac/dev/src/
  369. __________
  370. SAT (Sprite Animation Toolkit) is a library which makes it a lot easier to create sprite-based animation, especially for games.
  371. ----------
  372. Skel
  373. Ingemar Ragnemalm
  374. ingemar@lysator.liu.se
  375. Tricks CD:More Source:Pascal:
  376.  
  377. __________
  378. Skel is the classic Mac programming shell, here in a somewhat modernized version.
  379. ----------
  380. sndDemo
  381. Ingemar Ragnemalm
  382. ingemar@lysator.liu.se
  383. Tricks CD:More Source:Pascal:
  384.  
  385. __________
  386. sndDemo is a simple sound demo originally by Marv Westrom. Demonstrates how to play asynch sound with callback procedures.
  387. ----------
  388. SWar
  389. Ron Kaps
  390. RonAKaps@aol.com
  391. Tricks CD:More Source:C/C++:
  392. /info-mac/dev/src/
  393. __________
  394. SWar is the source code for an unfinished arcade game. It was envisioned as a simple, mindless, multi-player network game, but the author got sidetracked and never completed it. Right now, the program lets one player fly the blue ship, with three other ships just placed in random trajectories. The object is simply to shoot the other players.  Use the left/right arrow keys to rotate the blue ship, use the up arrow to thrust, and use the control key to fire missiles.
  395. ----------
  396. SWar
  397. Ingemar Ragnemalm
  398. ingemar@lysator.liu.se
  399. Tricks CD:More Source:Pascal:
  400.  
  401. __________
  402. SWar is a game by RonKaps. This is a Pascal version with slight enhancements.
  403. ----------
  404. Tetris Light 1.0
  405. Hoylen Sue
  406. h.sue@citr.uq.oz.au
  407. Tricks CD:More Source:C/C++:
  408. /info-mac/dev/src/
  409. __________
  410. Tetris Light is a light-weight implementation of Tetris for the Macintosh. It does not require color or other high-level features (it has been developed and tested on an SE).
  411. ----------
  412. VideoToolbox 95.04.18
  413. Denis Pelli
  414. denis_pelli@isr.syr.edu
  415. Tricks CD:More Source:Libraries:
  416. /info-mac/dev/src/
  417. __________
  418. VideoToolbox is a collection of two hundred C subroutines and several demo and utility programs that were written to do visual psychophysics with Macintosh computers.
  419. ----------
  420. Xconq 7.0d37
  421. Stan Shebs
  422. shebs@cygnus.com
  423. Tricks CD:More Source:C/C++:
  424. ftp://ftp.uu.net/pub/games/xconq/xc7.0/
  425. __________
  426. Xconq is not just a game, it's a game design system. It provides game designers with a variety of tools to help design new kinds of strategy games. Xconq has its own language, called GDL, a declarative Lisp-like language with considerable power.
  427. ----------
  428.